* {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f3f3f3;
  overflow: hidden;
}

.container{
  position: relative;
  width: 1050px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  .card {
    position: relative;
    width: 300px;
    height: 400px;
    background: #fff;
    transition: 0.5s;

    
    &:nth-child(1) {
      z-index: 3;
    }

    &:nth-child(2) {
      z-index: 2;
    }

    &:nth-child(3) {
      z-index: 1;
    }
    &::before {
      content: "";
      position: absolute;
      top: -15px;
      left: 0;
      width: 100%;
      height: 15px;
      background-color: #00c0f6;
      transform-origin: bottom;
      transform: skewX(45deg);
      transition: 0.5s;
    }

    &::after {
      content: "";
      position: absolute;
      top: -15px;
      left: -15px;
      width: 15px;
      height: 50%;
      background-color: #00c0f6;
      transform-origin: left;
      transform: skewY(45deg);
      transition: 0.5s;
      border-bottom: 200px solid #d9d9d9;
    }

    
    &:hover {
      transform: translateY(-40px);

      .content {
        &::before {
          transform: translateY(40px) skewX(45deg);
          filter: blur(5px);
          opacity: 0.5;
        }
      }
    }
    .img_box {
      position: relative;
      width: 300px;
      height: 200px;
      background-color: #00c7ff;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      .name {
        position: relative;
        color: #ffffff;
        margin-top: 10px;
      }

      .avatar {
        max-width: 100px;
      }
    }

    .content {
      box-sizing: border-box;
      position: relative;
      width: 100%;
      height: 200px;
      padding: 20px;
      color: #777;
      background: #ffffff;
      &::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 400px;
        background: linear-gradient(transparent, transparent, rgba(0, 0, 0, 0.1));
        transform-origin: bottom;
        transform: skewX(45deg);
        transition: 0.5s;
        pointer-events: none;
        z-index: -1;
      }

      .desc{
        text-indent: 2rem;
        font-size: 15px;
        line-height: 24px;
      }
    }
  }
}